﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;

namespace TA.Turbo
{
	/// <summary>
	/// Server-side data binding event arguments.
	/// </summary>
	public class BindEventArgs : EventArgs
	{
		/// <summary>
		/// Ctor.
		/// </summary>
		/// <param name="container">Container control of the data template.</param>
		/// <param name="dataEntry">The data.</param>
		public BindEventArgs(Control container, object dataEntry)
		{
			this._container = container;
			this._dataEntry = dataEntry;
		}
		/// <summary>
		/// Gets the container control of the template to which data has to be bound.
		/// </summary>
		public Control Container { get { return this._container; } }
		/// <summary>
		/// The data object.
		/// </summary>
		public object DataEntry { get { return this._dataEntry; } }

		Control _container;
		object _dataEntry;
	}
}
